<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
//    $router->post('/', 'HomeController@index');
    $router->post('auth/login', 'AuthController@postLogin');
    $router->resource('auth/users', AdminUserController::class);


    $router->get('test', Test::class.'@index');

    $router->resource('products', Product::class);
    $router->resource('users', UserController::class);
    $router->resource('article', ArticleController::class);
    $router->resource('movies', MovieController::class);
    $router->resource('sale-accounts', SaleAccounts::class);


    $router->resource('category', CategoryController::class);
    $router->resource('product-mongo', Product::class);
    $router->resource('skus', ProductController::class);


});


